package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mingqijia.gassafety.db.entity.annotation.OperateLogFiled;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode
@TableName("t_gss_business_notice_template")
@ApiModel(value="BusinessNoticeTemplate对象", description="业务通知规则模板表")
public class BusinessNoticeTemplate implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @OperateLogFiled(name = "简称")
    @ApiModelProperty(value = "参数名称")
    @TableField("param_name")
    private String paramName;

    @ApiModelProperty(value = "参数code")
    @TableField("param_code")
    private String paramCode;

    @OperateLogFiled(name = "参数值")
    @ApiModelProperty(value = "参数值")
    @TableField("param_value")
    private String paramValue;

    @OperateLogFiled(name = "参数类型")
    @ApiModelProperty(value = "参数类型")
    @TableField("param_type")
    private Integer paramType;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "排序")
    @TableField("ordinal")
    private Integer ordinal;

    /**
     * 是否删除 0-正常 1-删除
     */
    @TableField("is_deleted")
    private Boolean isDeleted;

    /**
     * 创建时间
     */
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private Date createdAt;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;
}
